<?php

	class User
	{
		private $name;
		private $accoutns=array();
		private $shop;
		
		public function setUser($name)
		{
			$this->name=$name;
		}
		
		public function setAccount($account, $isbn)
		{
			$this->accoutns[$isbn]=$account;
		}
		
		public function getUserName()
		{
			return $this->name;
			
		}
		
		public function getUserAccounts()
		{
			return $this->accoutns;
		}
		
		public function setShop($shop)
		{
			$this->shop=$shop;
		}
		
		public function getShop()
		{
			return $this->shop->getShopName();
		}
	}
	
	$user=new User();
	$reflection=new ReflectionClass($user);
	
	$methods=$reflection->getMethods();

	
		$classMethodNames = array();
		foreach ($methods as $index) {
				$name=$index->getName();
				$classMethodNames[] = $name;
				$method=$reflection->getMethod($name);
				$param=$method->getParameters();
				
				if(count($param)==0)
				{
					echo $name;
				}
		}
	
		echo "All methods: <br>";
		foreach ($classMethodNames as $method)
		{
			echo $method."<br>";
		}
		
		
?>